<template>
  <div class="nav_outer">
    <Header>我的任务</Header>
    <div class="locations">
      <div class="location">
        <div class="img_wrap"></div>
        <div class="location_info">
          <p>7天短工任务</p>
          <p class="flex_bet"><span class="marks">¥5000</span></p>
          <div class="common_statu">已领取</div>
          <p><span class="comp">蓝风电子科技有限公司</span> <span class="fr">浙江省·嘉兴市</span></p>
          
        </div>
      </div>
      <div class="location">
        <div class="img_wrap"></div>
        <div class="location_info">
          <p>7天短工任务</p>
          <p class="flex_bet"><span class="marks">¥5000</span></p>
          <div class="common_statu">已领取</div>
          <p><span class="comp">蓝风电子科技有限公司</span> <span class="fr">浙江省·嘉兴市</span></p>
        </div>
      </div>
      <div class="location">
        <div class="img_wrap"></div>
        <div class="location_info">
          <p>7天短工任务</p>
          <p class="flex_bet"><span class="marks">¥5000</span></p>
          <div class="common_statu">已领取</div>
          <p><span class="comp">蓝风电子科技有限公司</span> <span class="fr">浙江省·嘉兴市</span></p>
        </div>
      </div>
      <div class="location">
        <div class="img_wrap"></div>
        <div class="location_info">
          <p>7天短工任务</p>
          <p class="flex_bet"><span class="marks">¥5000</span></p>
          <div class="common_statu done">已完成</div>
          <p><span class="comp">蓝风电子科技有限公司</span> <span class="fr">浙江省·嘉兴市</span></p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Header from '@/components/commonComponents/Header'
export default {
  data() {
    return {

    }
  },
  mounted() {
    let mui = this.mui;
  },
  methods: {

  },
  components: {
    Header
  }
}
</script>

<style lang='scss' scoped>
  @function px2em($px) {
    @if (unitless($px)) {
      @return px2em($px + 0px);
    } @else if (unit($px) == em) {
      @return $px;
    }
    @return ($px / 75px) * 1rem;
  }
  .outer>div{
    background: #fff;
  }
  .tabs{
    display: flex;
    .tab{
      flex: 1;
      text-align: center;
      height: px2em(80);
      line-height: px2em(80);
    }
  }
  .location{
    padding: px2em(30);
    display: flex;
    background: #fff;
    border-bottom: 1px solid #E2E2E2;
    .img_wrap{
      width: px2em(140);
      height: px2em(140);
      background: #5ED3FF;
      margin-right: px2em(50);
    }
    .comp{
      color: #333;
    }
    .location_info{
      flex: 1;
      position: relative;
      >p:first-child{
        color: #333;
        font-size: 0.95em;
      }
      .marks{
        font-size: 1.2em;
        color: #FF0000;
        font-weight: bold;
      }
      .common_statu{
        position: absolute;
        right: 0;
        top: 50%;
        margin-top: - px2em(22);
        font-size: 12px;
        &.done{
          background: #999;
        }
      }
      .tag{
        height: px2em(40);
        border-radius: px2em(23);
        line-height: px2em(40);
        color: #00B9FF;
        border: 1px solid #00B9FF;
        padding: 3px 5px;
        font-size: 0.8em;
        margin-right: 6px;
      }
      >p:first-child{
        margin-bottom: 6px;
      }
      >p:last-child{
        position: absolute;;
        bottom: -3px;
        left: 0;
        width: 100%;
        margin-bottom: 0;
        font-size: 0.8em;
      }
    }
  }
</style>